<template>
    <div>
      <div v-for="(item,index) in list" :key="index">
        <div class=" item-title-icon">
          <div class="item-title">
            {{item.title}}
          </div>
          <!--<div v-if="item.children" >-->
          <div class="sub-item">
             <Detail-List :list="item.children" ></Detail-List>
          </div>
          <!--</div>-->
        </div>
      </div>
    </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}
</script>

<style scoped>
.item-title{
  line-height: .8rem;
  font-size: .32rem;
  padding: 0 .2rem;
  border-bottom: 1px solid #eee;
}
.sub-item{
  padding-left: .3rem;
}

</style>
